package com.xc.dao;

import com.xc.pojo.UserWithdraw;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface UserWithdrawMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserWithdraw record);

    int insertSelective(UserWithdraw record);

    UserWithdraw selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserWithdraw record);

    int updateByPrimaryKey(UserWithdraw record);


    List findUserWithList(@Param("uid") Integer uid,
                          @Param("withStatus") String withStatus);

    List listByAgent(@Param("searchId") Integer searchId,
                     @Param("realName") String realName,
                     @Param("state") Integer state);

    List listByAdmin(@Param("agentId") Integer agentId
            ,@Param("userId") Integer userId
            ,@Param("realName") String realName
            ,@Param("state") Integer state
            ,@Param("beginTime") String beginTime
            ,@Param("endTime") String endTime);

    BigDecimal CountSpWithSumAmtByState(Integer withState);


}